package com.wdz.mvr.Services;

//import com.wdz.mvr.dao.ClassificationRepository;
import com.wdz.mvr.dao.ClassificationRepository;
import com.wdz.mvr.entities.Classification;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassificationService {

    @Autowired
    ClassificationRepository classificationRepository;

    public List<Classification> getAll() {

        return classificationRepository.findAll();
    }

    public Classification save(Classification classification) {

        return classificationRepository.save(classification);
    }


}